import request from '@/utils/request'

// 查询界面与协议列表
export function listRetirementAgreement(query) {
  return request({
    url: '/retirement/retirementAgreement/list',
    method: 'get',
    params: query
  })
}

// 查询界面与协议详细
export function getRetirementAgreement(id) {
  return request({
    url: '/retirement/retirementAgreement/' + id,
    method: 'get'
  })
}

// 新增界面与协议
export function changeIsGrayOut(id,isGrayOut) {
  const data = {
    id,
    isGrayOut
  }
  return request({
    url: '/retirement/retirementAgreement/changeIsGrayOut',
    method: 'post',
    data: data
  })
}

// 修改界面与协议
export function updateRetirementAgreement(data) {
  return request({
    url: '/retirement/retirementAgreement',
    method: 'put',
    data: data
  })
}


